]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
dateMenu: Remove link to Date & Time Settings
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 7 Feb 2015 00:41:11 +0000 (01:41 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 20 Feb 2015 16:37:00 +0000 (17:37 +0100)
Menu items are on their way out of the calendar drop down, so let's
start with the easy one. This one is removed without replacement,
but then the Date & Time panel should be a one-time stop for most
users anyway, so not having a direct shortcut should not be much of
a problem. It is also the last remaining Settings item outside the
system menu ...

https://bugzilla.gnome.org/show_bug.cgi?id=744817

js/ui/dateMenu.js

index 7ffc4e87c4704f2bd2b8367520fd8d4954145fa0..a3c68bb6e35963561df8db795192cd24d5c4e9b8 100644 (file)
@@ -144,13 +144,6 @@ const DateMenuButton = new Lang.Class({
         Shell.AppSystem.get_default().connect('installed-changed',
                                               Lang.bind(this, this._appInstalledChanged));
 
-        item = this.menu.addSettingsAction(_("Date & Time Settings"), 'gnome-datetime-panel.desktop');
-        if (item) {
-            item.actor.show_on_set_parent = false;
-            item.actor.reparent(vbox);
-            this._dateAndTimeSeparator = separator;
-        }
-
 
         // Done with hbox for calendar and event list
 
@@ -202,10 +195,6 @@ const DateMenuButton = new Lang.Class({
         }
         this._setEventSource(eventSource);
         this._updateEventsVisibility();
-
-        // This needs to be handled manually, as the code to
-        // autohide separators doesn't work across the vbox
-        this._dateAndTimeSeparator.actor.visible = Main.sessionMode.allowSettings;
     },
 
     _getCalendarApp: function() {